
#include "OperationApi.hpp"
#include "../OLApp/CommandsManager.hpp"  
#include "../OLCommands/CentralWidgetCommands.hpp"


namespace NSApi {
	void OperationApi::api_perspective(bool off) {
		NSCommands::PerspectiveCommand* cmd = new NSCommands::PerspectiveCommand(off); 
		myManager(CommandsManager)->execute(cmd, false);
	}

	void OperationApi::api_view_direction(int direction) {
		myManager(CommandsManager)->execute(new NSCommands::ViewDirectionCommand(direction), false);
	}

}
